﻿namespace Anmlz.Model.Entities
{
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;

    public class User
    {
        public int Id { get; set; }
        [MaxLength(256)]
        public string Name { get; set; }
        [MaxLength(256)]
        public string Surname { get; set; }
        [EmailAddress]
        public string Email { get; set; }
        public string Password { get; set; }
        [Phone]
        public string Phone { get; set; }
        public int CountryId { get; set; }
        public Country Country { get; set; }
        public int CityId { get; set; }
        public City City { get; set; }
        [MaxLength(1024)]
        public string Address { get; set; }
        public bool Male { get; set; }
        public int AvatarId { get; set; }
        public Image Avatar { get; set; }
        public string Details { get; set; }
        public int AccountTypeId { get; set; }
        public UserType UserType { get; set; }
        public ICollection<ImageToUser> ImageToUsers{ get; set; }
        public ICollection<UserInRole> UserInRoles { get; set; }
    }
}
